package edu.java.homework.hw03.introJava11.chapter10.examples;

import java.util.Arrays;

import edu.java.homework.hw03.introJava11.chapter10.Cat;
import edu.java.homework.hw03.introJava11.chapter10.Sequence;

/**
 * realization of exercise 03 and 04 of Chapter 11
 * @author Tsvetan Vasilev
 *
 */
public class Test {

   private static final int count=3;
    public static void main(String[] args) {
	
	// exercise 03 ---------------------------------------------------------
//	Cat katya = new Cat("Chochco", "grey");
//	katya.sayMiau();
//	System.out.println("Cat " + katya.getName() + " has color "
//		+ katya.getColor());
//
//	Cat defaultCat = new Cat();
//	defaultCat.sayMiau();
//
//	System.out.printf("3 Sequences: %d, %d, %d", Sequence.nextValue(),
//		Sequence.nextValue(), Sequence.nextValue());
//	
	// exercise 04 ---------------------------------------------------------
	Cat[] cats= new Cat[count];
	//System.out.println(Arrays.deepToString(cats));
	String name;
	for(int i=0;i<cats.length;i++){
	    name="Cat"+i;
	    cats[i]=new Cat(name);
	}
	for (Cat cat : cats) {
	    cat.sayMiau();
	}
	
	
	
	
	
    }

}
